package com.ruoyi.user.service.impl;

import com.ruoyi.user.domain.YmImageEntity;
import com.ruoyi.user.mapper.YmImageMapper;
import com.ruoyi.user.service.IYmImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service业务层处理
 * 
 * @author zq
 * @date 2022-11-08
 */
@Service
public class YmImageServiceImpl implements IYmImageService 
{
    @Autowired
    private YmImageMapper ymImageMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public YmImageEntity selectYmImageById(Long id)
    {
        return ymImageMapper.selectYmImageById(id);
    }

    /**
     * 查询列表
     * 
     * @param ymImageEntity 
     * @return 
     */
    @Override
    public List<YmImageEntity> selectYmImageList(YmImageEntity ymImageEntity)
    {
        return ymImageMapper.selectYmImageList(ymImageEntity);
    }

    /**
     * 新增
     * 
     * @param ymImageEntity 
     * @return 结果
     */
    @Override
    public int insertYmImage(YmImageEntity ymImageEntity)
    {
        return ymImageMapper.insertYmImage(ymImageEntity);
    }

    /**
     * 修改
     * 
     * @param ymImageEntity 
     * @return 结果
     */
    @Override
    public int updateYmImage(YmImageEntity ymImageEntity)
    {
        return ymImageMapper.updateYmImage(ymImageEntity);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteYmImageByIds(Long[] ids)
    {
        return ymImageMapper.deleteYmImageByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteYmImageById(Long id)
    {
        return ymImageMapper.deleteYmImageById(id);
    }
}
